﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.ComponentModel.DataAnnotations
{
    public class ExpresionesRegulares
    {
        /// <summary>
        /// Formato correo electrónico
        /// </summary>
        public const string Email = @"^[a-z0-9_\+-]+(\.[a-z0-9_\+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,4})$";
        /// <summary>
        /// Números enteros positivos
        /// </summary>
        public const string Digitos = @"^[0-9\s]*$";
        /// <summary>
        /// Un único dígito 0-9
        /// </summary>
        public const string Digito = @"^[0-9\s]$";
        /// <summary>
        /// Decimales positivos
        /// </summary>
        public const string DecimalesPositivos = @"^([0-9]*|\d*\.\d{1}?\d*)$";
    }
}

